3.166 \(\int \frac{\tan ^{-1}(a x^n)}{x} \, dx\)

Optimal. Leaf size=39 \[ \frac{i \text{PolyLog}\left (2,-i a x^n\right )}{2 n}-\frac{i \text{PolyLog}\left (2,i a x^n\right )}{2 n} \]

[Out]

((I/2)*PolyLog[2, (-I)*a*x^n])/n - ((I/2)*PolyLog[2, I*a*x^n])/n

________________________________________________________________________________________

Rubi [A]  time = 0.0358367, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {5031, 4848, 2391} \[ \frac{i \text{PolyLog}\left (2,-i a x^n\right )}{2 n}-\frac{i \text{PolyLog}\left (2,i a x^n\right )}{2 n} \]

Antiderivative was successfully verified.

[In]

Int[ArcTan[a*x^n]/x,x]

[Out]

((I/2)*PolyLog[2, (-I)*a*x^n])/n - ((I/2)*PolyLog[2, I*a*x^n])/n

Rule 5031

Int[((a_.) + ArcTan[(c_.)*(x_)^(n_)]*(b_.))^(p_.)/(x_), x_Symbol] :> Dist[1/n, Subst[Int[(a + b*ArcTan[c*x])^p
/x, x], x, x^n], x] /; FreeQ[{a, b, c, n}, x] && IGtQ[p, 0]

Rule 4848

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))/(x_), x_Symbol] :> Simp[a*Log[x], x] + (Dist[(I*b)/2, Int[Log[1 - I*c*x
]/x, x], x] - Dist[(I*b)/2, Int[Log[1 + I*c*x]/x, x], x]) /; FreeQ[{a, b, c}, x]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rubi steps

\begin{align*} \int \frac{\tan ^{-1}\left (a x^n\right )}{x} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\tan ^{-1}(a x)}{x} \, dx,x,x^n\right )}{n}\\ &=\frac{i \operatorname{Subst}\left (\int \frac{\log (1-i a x)}{x} \, dx,x,x^n\right )}{2 n}-\frac{i \operatorname{Subst}\left (\int \frac{\log (1+i a x)}{x} \, dx,x,x^n\right )}{2 n}\\ &=\frac{i \text{Li}_2\left (-i a x^n\right )}{2 n}-\frac{i \text{Li}_2\left (i a x^n\right )}{2 n}\\ \end{align*}

Mathematica [A]  time = 0.0131773, size = 32, normalized size = 0.82 \[ \frac{i \left (\text{PolyLog}\left (2,-i a x^n\right )-\text{PolyLog}\left (2,i a x^n\right )\right )}{2 n} \]

Antiderivative was successfully verified.

[In]

Integrate[ArcTan[a*x^n]/x,x]

[Out]

((I/2)*(PolyLog[2, (-I)*a*x^n] - PolyLog[2, I*a*x^n]))/n

________________________________________________________________________________________

Maple [B]  time = 0.033, size = 94, normalized size = 2.4 \begin{align*}{\frac{\ln \left ( a{x}^{n} \right ) \arctan \left ( a{x}^{n} \right ) }{n}}+{\frac{{\frac{i}{2}}\ln \left ( a{x}^{n} \right ) \ln \left ( 1+ia{x}^{n} \right ) }{n}}-{\frac{{\frac{i}{2}}\ln \left ( a{x}^{n} \right ) \ln \left ( 1-ia{x}^{n} \right ) }{n}}+{\frac{{\frac{i}{2}}{\it dilog} \left ( 1+ia{x}^{n} \right ) }{n}}-{\frac{{\frac{i}{2}}{\it dilog} \left ( 1-ia{x}^{n} \right ) }{n}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(arctan(a*x^n)/x,x)

[Out]

1/n*ln(a*x^n)*arctan(a*x^n)+1/2*I/n*ln(a*x^n)*ln(1+I*a*x^n)-1/2*I/n*ln(a*x^n)*ln(1-I*a*x^n)+1/2*I/n*dilog(1+I*
a*x^n)-1/2*I/n*dilog(1-I*a*x^n)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} -a n \int \frac{x^{n} \log \left (x\right )}{a^{2} x x^{2 \, n} + x}\,{d x} + \arctan \left (a x^{n}\right ) \log \left (x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctan(a*x^n)/x,x, algorithm="maxima")

[Out]

-a*n*integrate(x^n*log(x)/(a^2*x*x^(2*n) + x), x) + arctan(a*x^n)*log(x)

________________________________________________________________________________________

Fricas [B]  time = 2.56211, size = 181, normalized size = 4.64 \begin{align*} \frac{2 \, n \arctan \left (a x^{n}\right ) \log \left (x\right ) + i \, n \log \left (i \, a x^{n} + 1\right ) \log \left (x\right ) - i \, n \log \left (-i \, a x^{n} + 1\right ) \log \left (x\right ) - i \,{\rm Li}_2\left (i \, a x^{n}\right ) + i \,{\rm Li}_2\left (-i \, a x^{n}\right )}{2 \, n} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctan(a*x^n)/x,x, algorithm="fricas")

[Out]

1/2*(2*n*arctan(a*x^n)*log(x) + I*n*log(I*a*x^n + 1)*log(x) - I*n*log(-I*a*x^n + 1)*log(x) - I*dilog(I*a*x^n)
+ I*dilog(-I*a*x^n))/n

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{atan}{\left (a x^{n} \right )}}{x}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(atan(a*x**n)/x,x)

[Out]

Integral(atan(a*x**n)/x, x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\arctan \left (a x^{n}\right )}{x}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctan(a*x^n)/x,x, algorithm="giac")

[Out]

integrate(arctan(a*x^n)/x, x)